package com.huawei.appmarket.service.thirdappdl;

import android.content.Intent;
import android.os.Bundle;
import android.text.TextUtils;
import com.huawei.updatesdk.service.otaupdate.UpdateStatusCode.DialogButton;
import java.util.HashMap;
import o.Logger;
import o.ejk;
import o.ll;

public class OpenThirdAppDldActivity extends ThirdAppDownloadActivity implements ejk {
    private HashMap<Integer, String> ͺ;

    private void ˈ() {
        if (this.ͺ == null) {
            this.ͺ = new HashMap();
        }
        this.ͺ.put(Integer.valueOf(100), "com.huawei.appmarket.thirdApp.show.inqure.dialog");
        this.ͺ.put(Integer.valueOf(DialogButton.CONFIRM), "com.huawei.appmarket.thirdApp.install.confirm");
        this.ͺ.put(Integer.valueOf(102), "com.huawei.appmarket.thirdApp.install.cancel");
        this.ͺ.put(Integer.valueOf(201), "com.huawei.appmarket.thirdApp.download.failed");
        this.ͺ.put(Integer.valueOf(202), "com.huawei.appmarket.thirdApp.install.interrupt");
        this.ͺ.put(Integer.valueOf(302), "com.huawei.appmarket.thirdApp.install.successed");
        this.ͺ.put(Integer.valueOf(301), "com.huawei.appmarket.thirdApp.install.failed");
        this.ͺ.put(Integer.valueOf(401), "com.huawei.appmarket.thirdApp.cannot.update");
        this.ͺ.put(Integer.valueOf(402), "com.huawei.appmarket.thirdApp.cannot.update");
        this.ͺ.put(Integer.valueOf(403), "com.huawei.appmarket.thirdApp.cannot.update");
        this.ͺ.put(Integer.valueOf(501), "com.huawei.appmarket.thirdApp.paused.network.changed");
        this.ͺ.put(Integer.valueOf(502), "com.huawei.appmarket.thirdApp.no.network");
        this.ͺ.put(Integer.valueOf(601), "com.huawei.appmarket.thirdApp.activity.finished");
    }

    private String ॱ(int i) {
        if (this.ͺ == null) {
            return null;
        }
        return (String) this.ͺ.get(Integer.valueOf(i));
    }

    public void onCreate(Bundle bundle) {
        ˈ();
        ˏ((ejk) this);
        super.onCreate(bundle);
    }

    public void ˊ(int i) {
        ॱॱ(ॱ(i));
    }

    private void ॱॱ(String str) {
        Logger.ˏ("OpenThirdAppDldActivity", "send broadcast: " + str);
        if (TextUtils.isEmpty(str)) {
            Logger.ˋ("OpenThirdAppDldActivity", "send broadcast error because action is empty");
            return;
        }
        ll.ˏ(this).ˋ(new Intent(str));
    }

    protected boolean ʻॱ() {
        return false;
    }

    protected boolean ʽॱ() {
        return true;
    }

    protected int ᐝॱ() {
        return h.ﹳॱ;
    }
}
